{% load report_tags %}
{% for cubeship in report.cubeship_set.all %}
{% get_valid_template "report/custom/charts/"|add:cubeship.pk|add:".html" "charts/"|add:cubeship.chart.name|add:".html" as valid_template %}
<div class="row">
    <div class="col-sm-12">
        <div class="tabbable">
            <ul class="nav nav-tabs" id="myTab">
                <li class="active">
                    <a data-toggle="tab" href="#cubeship_{{ cubeship.pk }}">
                        <i class="green ace-icon fa fa-{{ cubeship.chart.name }}-chart bigger-120"></i>
                        {{ cubeship.label }}
                    </a>
                </li>
            </ul>
            <div class="tab-content">
                <div id="cubeship_{{ cubeship.pk }}" class="tab-pane fade in active" style="height: 400px">
                </div>
                {% include valid_template %}
                <script type="text/javascript">
                    load_cubeship_{{ cubeship.pk }}()
                </script>
            </div>
        </div>
    </div>
<div class="col-sm-6">
{% endfor %}
